﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class MoralityDetail
	{
		public MoralityDetail()
		{
			m_RID = 0;

		}

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region RecordID
		
		private int? m_RecordID;
		
		public int? RecordID
		{
			get { return m_RecordID; }
			set { m_RecordID = value; }
		}
		
		#endregion
		
		#region Itemid
		
		private int? m_Itemid;
		
		public int? Itemid
		{
			get { return m_Itemid; }
			set { m_Itemid = value; }
		}
		
		#endregion
		
		#region StudentID
		
		private int? m_StudentID;
		
		public int? StudentID
		{
			get { return m_StudentID; }
			set { m_StudentID = value; }
		}
		
		#endregion
		
		#region Param

        private double? m_Param;

        public double? Param
		{
			get { return m_Param; }
			set { m_Param = value; }
		}
		
		#endregion
		

		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			MoralityDetail castObj = (MoralityDetail) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 35;
			hash = hash * 35
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}